/* jshint indent: 2 */

module.exports = function(sequelize, DataTypes) {
  return sequelize.define('fStore', {
    id: {
      type: DataTypes.INTEGER(11),
      allowNull: false,
      primaryKey: true,
      autoIncrement: true,
      field: 'id'
    },
    automaticReceipt: {
      type: DataTypes.INTEGER(60),
      allowNull: true,
      field: 'automatic_receipt'
    },
    fees: {
      type: DataTypes.INTEGER(60),
      allowNull: true,
      field: 'fees'
    },
    depositRatio: {
      type: DataTypes.INTEGER(60),
      allowNull: true,
      field: 'deposit_ratio'
    },
    mentionAddress: {
      type: DataTypes.STRING(255),
      allowNull: true,
      field: 'mention_address'
    },
    storeName: {
      type: DataTypes.STRING(255),
      allowNull: true,
      field: 'store_name'
    },
    concatNumber: {
      type: DataTypes.STRING(255),
      allowNull: true,
      field: 'concat_number'
    },
    normalTeamAward: {
      type: DataTypes.INTEGER(11),
      allowNull: true,
      field: 'normal_team_award'
    },
    seniorTeamAward: {
      type: DataTypes.INTEGER(11),
      allowNull: true,
      field: 'senior_team_award'
    }
  }, {
    tableName: 'f_store'
  });
};
